00cfe34b7f42c4633e1ef2308920d542bd5a435f,framework/webapp/src/org/ofbiz/webapp/view/ApacheFopWorker.java,ApacheFopWorker,getFactoryInstance,#,67

Before Change


                    String ofbizHome = System.getProperty("ofbiz.home");
                    String fopPath = UtilProperties.getPropertyValue("fop.properties", "fop.path", ofbizHome + "/framework/webapp/config");
                    File userConfigFile = FileUtil.getFile(fopPath + "/fop.xconf");
                    fopFactory.setUserConfig(userConfigFile);
                    String fopFontBaseUrl = UtilProperties.getPropertyValue("fop.properties", "fop.font.base.url", "file:///" + ofbizHome + "/framework/webapp/config/");
                    fopFactory.getFontManager().setFontBaseURL(fopFontBaseUrl);
                    Debug.logInfo("FOP-FontBaseURL: " + fopFontBaseUrl, module);

After Change


                    String fopPath = UtilProperties.getPropertyValue("fop.properties", "fop.path", ofbizHome + "/framework/webapp/config");
                    File userConfigFile = FileUtil.getFile(fopPath + "/fop.xconf");
                    if (userConfigFile.exists()) {
                        fopFactory.setUserConfig(userConfigFile);
                    } else {
                        Debug.logWarning("FOP configuration file not found: " + userConfigFile, module);
                    }